import { Injectable } from '@angular/core';
import {RequestUtil} from "../../../util/request-util";
import {FormUtil} from "../../../util/form-util";
import {MsgResult} from "../../../models/msg-result";
import {Observable} from "rxjs/Observable";
import {MsgAPI} from "../msg-constants";

@Injectable()
export class AlarmConfigService {

  constructor(
    private request: RequestUtil,
    private formUtil: FormUtil
  ) {
 }
  //添加或修改
  addOrUpateCofig(param: Array<Map<string,string>>): Observable<MsgResult> {
    // console.log(param);
    return this.request.post(MsgAPI.addOrUpateCofig + "&param=" + param);
  }

}
